package top.lyc829.mymusic.model.bean

/**
 * @Author lyc
 * @create 2021-07-15 09:59
 */
data class SongResult(
    val code: Int,
    val songs: List<Song>
)

data class Song(
    val al: Album,
    val ar: List<Artist>,
    val dt: Long,    //歌曲时长
    val id: Long,
    val name: String,
    val publishTime: Long,
    var url: String? = "", //音乐url
)


data class SongUrlResult(
    val code: Int,
    val data: List<SongUrlResultData>
)

data class SongUrlResultData(
    val br: Int,
    val canExtend: Boolean,
    val code: Int,
//    val encodeType: Any,
    val expi: Int,
    val fee: Int,
    val flag: Int,
    val freeTimeTrialPrivilege: FreeTimeTrialPrivilege,
    val freeTrialInfo: FreeTrialInfo,
    val freeTrialPrivilege: FreeTrialPrivilege,
    val gain: Float,
    val id: Long,
//    val level: Any,
    val md5: String,
    val payed: Int,
    val size: Int,
    val type: String,
//    val uf: Any,
    val url: String,
    val urlSource: Int
)

data class FreeTimeTrialPrivilege(
    val remainTime: Int,
    val resConsumable: Boolean,
    val type: Int,
    val userConsumable: Boolean
)

data class FreeTrialInfo(
    val end: Int,
    val start: Int
)

